//
//  HuJudgeTools.h
//  need
//
//  Created by AcHu on 15/11/11.
//  Copyright (c) 2015年 oc. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HuJudgeTools : NSObject

/**
 *  验证是否为邮箱
 */
+ (BOOL)validateEmail:(NSString *)email;

/**
 *  验证是否为手机号
 */
+ (NSString *)valiMobile:(NSString *)mobile;

/**
 *  验证是否为车牌号
 */
+ (BOOL)validateCarNo:(NSString *)carNo;

//验证用户名
+ (BOOL)validateUserName:(NSString *)name;

//验证密码
+ (BOOL)validatePassword:(NSString *)passWord;

//验证昵称
+ (BOOL)validateNickname:(NSString *)nickname;

/**
 *  验证是否为身份证
 */
+ (BOOL)validateIdentityCard: (NSString *)identityCard;

//验证图片链接是否是缩略图
+ (BOOL)validateImageUrl:(NSString *)url;

/**
 *  自定义正则
 */
+ (BOOL)validCustomStr:(NSString *)str match:(NSString *)match;

/**
 *  传入距离当前多少天 返回字典年月日周几
 */
+ (NSDictionary *)getDateAction:(int)number;

/**
 *  验证定位是否可用
 */
+(BOOL)valiLocationCanOrNo;
@end
